/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treeship.core.ship.space.impl;

import treeship.core.ship.space.Space;

/**
 *
 * @author moonchild
 */
public class SquareShape2D extends Shape2D {

    @Override
    public void initShape(Space dimension) {
        super.initShape(dimension);
    }

    @Override
    protected void custom_initShape(Space dimension) {
        double d=Math.sqrt(dimension.getValue());
        setWidth(d);
        setHeight(d);
    }
}
